<?php
include("inc/global.inc");
include("steps.php");
if($_GET[id]){
$rs=@mysql_query("select * from job_favorites where member_id='$_COOKIE[job_user_id]' and post_id='".$_GET['id']."'");
$row=@mysql_fetch_array($rs);
   if($row['id']){
      echo "<script>alert('您已经收藏该职位');window.close();</script>";
   }else{
   
     @mysql_query("insert into job_favorites (member_id,post_id,favorite_addtime) values ('$_COOKIE[job_user_id]','$_GET[id]','".date("Y-m-d H:i:s")."')");
	  
   }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>收藏夹-会员收藏夹-三帝贸易网</title>
<style type="text/css">
<!--
.ta {
	font-size: 12px;
	color: #333333;
	height: 60px;
	width: 500px;
	margin-right: auto;
	margin-left: auto;
	padding: 20px;
	background-color: #F7F5EE;
	border: 1px solid #ECE9D8;
}
-->
</style>
</head>
<body>
<div class="ta">已加入收藏夹,即将关闭.<br />
<br />
<a href="#" onclick="window.close()">如果您不想等待（或者您的浏览器没有自动关闭），请点击这里</a>
</div>
</body>
</html>



